const parentCode = 'equipmentLedger'
export default [{
  path: "/equipmentLedger",
  meta: {
    title: "设备台账",
    code: parentCode, //来确定是哪个模块，一级菜单的code
  },
  component: (resolve) => require(["@/views/equipmentLedger"], resolve),
  children: [{
      path: "/",
      redirect: "parameterInfor",
    },
    {
      path: "parameterInfor",
      name:"parameterInfor",
      meta: {
        title: "台账信息",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "parameterInfor", //二级菜单的code
      },
      component: (resolve) =>
        require(["@/views/equipmentLedger/parameterInfor"], resolve),
    },
    {
      path: "equipmentManage",
      name: "equipmentManage",
      meta: {
        title: "设备管理",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "equipmentManage",
      },
      component: (resolve) =>
        require(["@/views/equipmentLedger/equipmentManage"], resolve),
    },
    {
      path: "equipmentMove",
      name: "equipmentMove",
      meta: {
        title: "设备异动",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "equipmentMove",
      },
      component: (resolve) =>
        require(["@/views/equipmentLedger/equipmentMove"], resolve),
    },
    {
      path: "locationManage",
      name: "locationManage",
      meta: {
        title: "位置管理",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "locationManage",
      },
      component: (resolve) =>
        require(["@/views/equipmentLedger/locationManage"], resolve),
    },
    {
      path: "sparePart",
      name: "sparePart",
      meta: {
        title: "备品备件",
        parentCode: parentCode, //来确定是哪个模块，一级菜单的code
        code: "sparePart",
      },
      component: (resolve) =>
        require(["@/views/equipmentLedger/sparePart"], resolve),
    },
    {
      path: "electricalTestReport",
      name: "electricalTestReport",
      meta: {
        title: "电气试验报告",
        parentCode: parentCode,
        code: "electricalTestReport"
      },
      component: (resolve) => import("@/views/equipmentLedger/electricalTestReport")
    },
  ],
}, ];